package com.ying.user.dao;

import com.ying.user.entity.MmRole;
import com.ying.user.entity.MmRoleQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MmRoleDao {
    /**
     *
     * @mbg.generated 2020-07-13
     */
    long countByQuery(MmRoleQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByQuery(MmRoleQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int deleteByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insert(MmRole record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int insertSelective(MmRole record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    List<MmRole> selectByQuery(MmRoleQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    MmRole selectByPrimaryKey(Long id);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuerySelective(@Param("record") MmRole record, @Param("example") MmRoleQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByQuery(@Param("record") MmRole record, @Param("example") MmRoleQuery example);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKeySelective(MmRole record);

    /**
     *
     * @mbg.generated 2020-07-13
     */
    int updateByPrimaryKey(MmRole record);

    List<MmRole> selectByUserId(@Param("id") Long id);
}